<div class="_contro">
<?php if($item['status']==1){  ?>
	<a href="/home/goods/" class="_a"><font class="_font">返回</font></a>
<?php }else{?>	
    <a href="javascript:;" onclick='release(<?php echo $item['id'];?>,<?php echo $item['store_id']; ?>)' class="_a"><font class="_font maskLayer">上架</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
	<a href="/home/goods/create?id=<?php echo $item['id'];?>&store_id=<?php echo $item['store_id']; ?>" class="_a"><font class="_font">返回</font></a>
<?php }?>
</div>
<div class='_cut'></div>
    <div class="preview_div">
    	     <div class='box'>              
                <img src="<?php echo "http://".IMAGE_DOMAIN.$item['images'][0]['image']; ?>" style='width:200px;height:200px;float:left;' >
                <?php if($item['images'][1]['image']!=''){ ?>
                <img src="<?php echo "http://".IMAGE_DOMAIN.$item['images'][1]['image']; ?>" style='width:200px;height:200px;' >
                <?php } ?>
                <br/>
                <div style='clear:both;' ></div>
            </div>
            <div class='_cut2'></div> 
      		<div class='box'>
      			<?php $type = $item['type']; if($type==0){ $mark='lf.png';}elseif($type==1){ $mark='tr.png';}elseif($type==2){ $mark='hl.png';}elseif($type==3){ $mark='yq.png';}elseif($type==4){ $mark='rg.png';}?>
                        <img class='_img' src="/public/images/<?php echo $mark; ?>" style='width:25%;'/>&nbsp;                
               <span style='font-size:2.5rem' ><?php echo $item['name'] ;?></span> 
            </div>
            <div class='box' style='margin-left:11rem;' >
            	<span class='colors-size'>——<?php echo $item['title'];?></span>
            </div> 
      		<div class='box'>
      			包含:<br>
      			<?php if($item['is_meal_set']==0){ ?>
    			<span style='font-size:1.7rem;margin-left:2.5rem;' ><?php echo $item['name'];?></span>
    			<?php }else{ ?>
    			<?php foreach ($item['items'] as $k => $v) { ?>
    			<span style='font-size:1.7rem;margin-left:2.5rem;' ><?php echo $v['name'];?>—<span style='color:red' ><?php echo $v['number'];?></span>次</span> <br/>
    			<?php } ?>
    			<?php } ?>
            </div> 
            <div class='box'  >价格：￥<span style='color:red;font-size:2rem;' ><?php echo ($item['price']/100); ?></span></div>
            <div class='box'>购买数量:&nbsp;&nbsp;&nbsp;<input id="btn1" type="button" value="+" />&nbsp;<input type="text" value="1" style='width:3rem' />&nbsp;<input type="button" id="btn2" value="-" />
			</div>
			<?php $level = json_decode($item['level'],true); if($level==0){  ?>
			<div class='box' style='margin-top:1rem' >适用范围:<span style='font-size:1.7rem;' >所有</span> </div>
			<?php }else{  ?>
				<div class='box' style='margin-top:1rem' >适用范围:
				<?php foreach($level as $v){   ?>
				<?php if($v==1){ $v= '高级发型师';}elseif($v==2){ $v= '高级总监';}elseif($v==3){ $v= '高级顾问';}elseif($v==4){ $v= '高级美容师';}elseif($v==5){ $v=  '高级经理';}elseif($v==6){ $v='高级助理';} ?>
				<span style='font-size:1.7rem;'><?php echo $v ?> / </span> 
				<?php   } } ?>
				<div class='box' style='font-size:1.7rem;' ><?php echo $item['intro'] ?> </div>

			</div>
			
<script type="text/javascript">
	function release(item_id,store_id){
            var re = confirm('确定要上架该商品？');
		if(re){
			window.location.href = '/home/goods/release?id='+item_id+'&store_id='+store_id;
		}else{
                    maskLayerClose();
                }
	}
</script>
